﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class M_Hoadon
    {
        #region Fields

        private int hoadonID;
        private int dangkyID;
        private int khachID;
        private decimal tongtien;
        private DateTime ngaythanhtoan;

        #endregion

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the Hoadon class.
        /// </summary>
        public M_Hoadon()
        {
        }

        /// <summary>
        /// Initializes a new instance of the Hoadon class.
        /// </summary>
        public M_Hoadon(int dangkyID, int khachID, decimal tongtien, DateTime ngaythanhtoan)
        {
            this.dangkyID = dangkyID;
            this.khachID = khachID;
            this.tongtien = tongtien;
            this.ngaythanhtoan = ngaythanhtoan;
        }

        /// <summary>
        /// Initializes a new instance of the Hoadon class.
        /// </summary>
        public M_Hoadon(int hoadonID, int dangkyID, int khachID, decimal tongtien, DateTime ngaythanhtoan)
        {
            this.hoadonID = hoadonID;
            this.dangkyID = dangkyID;
            this.khachID = khachID;
            this.tongtien = tongtien;
            this.ngaythanhtoan = ngaythanhtoan;
        }

        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the HoadonID value.
        /// </summary>
        public virtual int HoadonID
        {
            get { return hoadonID; }
            set { hoadonID = value; }
        }

        /// <summary>
        /// Gets or sets the DangkyID value.
        /// </summary>
        public virtual int DangkyID
        {
            get { return dangkyID; }
            set { dangkyID = value; }
        }

        /// <summary>
        /// Gets or sets the KhachID value.
        /// </summary>
        public virtual int KhachID
        {
            get { return khachID; }
            set { khachID = value; }
        }

        /// <summary>
        /// Gets or sets the Tongtien value.
        /// </summary>
        public virtual decimal Tongtien
        {
            get { return tongtien; }
            set { tongtien = value; }
        }

        /// <summary>
        /// Gets or sets the Ngaythanhtoan value.
        /// </summary>
        public virtual DateTime Ngaythanhtoan
        {
            get { return ngaythanhtoan; }
            set { ngaythanhtoan = value; }
        }

        #endregion
    }
}
